{include file="public/header" /}

<div class="container mtb-15">
	{include file="user_setting/left_nav" /}
	<div class="user-setting col-md-10 form-horizontal">
		<h2 class="h3 post-title">{$user['mobile'] ? '更换' : '绑定'}手机号</h2>
		<div class="row mt-30">
			<form action="" method="post" class="ajax-form">
				{eq name="_is_set_password" value="1"}
					<div class="form-group">
						<label for="name" class="required control-label col-sm-3">登录密码</label>
						<div class="col-sm-4">
							<input name="password" type="password" placeholder="请输入登录密码！" class="form-control" value="" required>
						</div>
					</div>
				{/eq}
				<div class="form-group ">
					<label for="name" class="required control-label col-sm-3">手机号</label>
					<div class="col-sm-4">
						<input name="mobile" type="text" placeholder="请输入新的手机号" class="form-control mobile" value="" autocomplete="off" mobile="true" required>
					</div>
				</div>
				<div class="form-group ">
					<label for="name" class="required control-label col-sm-3">图片验证码</label>
					<div class="col-sm-4">
						<input type="text" name="imgcode" placeholder="图片验证码" class="form-control" style="width: 60%;float: left">
						<img class="img-verify" href="{:captcha_src()}" src="{:captcha_src()}" style="width: 40%;float: left;height: 34px;cursor: pointer;" />
					</div>
				</div>
				<div class="form-group ">
					<label for="name" class="required control-label col-sm-3">短信验证码</label>
					<div class="col-sm-4">
						<input type="text" name="smscode" class="smscode form-control" placeholder="短信验证码" autocomplete="off" style="width: 60%;float: left">
						<div class="get-smscode btn btn-primary" sms-type="{$user['mobile'] ? 'change_mobile' : 'bind_mobile'}" url="{:url('get_smscode')}" style="width: 40%;float: left;">获取验证码</div>
						<div class="smscode-time btn btn-primary" style="display: none"><span>60</span>s</div>
					</div>
				</div>
				<div class="form-action row">
					<div class="col-sm-offset-3 col-sm-9">
						<button class="btn btn-xl btn-primary profile-sub" type="submit">保存修改</button>
					</div>
				</div>
			</form>
		</div>
	</div>
</div>

{include file="public/footer" /}